export default (app) => {
    const mongoose = app.mongoose;
    const Schema = mongoose.Schema;
    const OrderSchema = new Schema({
        username: {
            type: String
        },
       password: {
            type:String
        },
       info:{
            type: String
        }
    });
    return mongoose.model('User', OrderSchema, 'user'); //返回model，其中user为数据库中表的名称
}